/*
 * @Author: lijun ahjunshao666@163.com
 * @Date: 2023-07-28 18:42:03
 * @LastEditors: wsh
 * @LastEditTime: 2024-05-31 10:24:42
 * @FilePath: \NingxiangElderlyCare\src\apiMod\modules\applyManage.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const applyManage = (request) => {
	return {
		view_ofsSubsidyApply_page(query = {}) {
			return request(`/application/ofsSubsidyApply/page`, {
				method: 'post',
				data: query,
			})
		},
		// 机构运营补贴导出-下载
		view_downloadData_download(query = {}) {
			return request(`/application/downloadData/download`, {
				method: 'post',
				// responseType: 'blob',
				data: query,
			})
		},
		// 床位补贴导出-下载 auth: view_downloadPackage_getOrgBedSubsidy
		view_downloadPackage_getOrgBedSubsidy(query = {}) {
			return request(`/application/downloadPackage/getOrgBedSubsidy`, {
				method: 'post',
				// responseType: 'blob',
				data: query,
			})
		},

		view_ofsSubsidyApply_add(query = {}) {
			return request(`/application/ofsSubsidyApply/add`, {
				method: 'post',
				data: query,
			})
		},
		view_ofsSubsidyApplyById_submit(query = {}) {
			return request(`/application/ofsSubsidyApply/submit`, {
				method: 'post',
				data: query,
			})
		},
		view_workflowApprovalLogic_revocation(query = {}) {
			return request(`/application/approvalLogic/revocation`, {
				method: 'post',
				data: query,
			})
		},
		view_ofsSubsidyApply_view(id) {
			return request(`/application/ofsSubsidyApply/${id}`, {
				method: 'get',
			})
    },
    view_bscBusinessProcess_edit(query = {}) {
			return request(`/application/bscBusinessProcess/edit`, {
				method: 'post',
				data: query,
			})
		},
		view_ofsSubsidyApply_approval_exportApply(query = {}) {
			return request(`/application/ofsSubsidyApply/exportApply`, {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_ofsSubsidyApply_del(query = {}) {
			return request(`/application/ofsSubsidyApply/del`, {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		//五类老人扶助申请 批量删除
		view_ofsSubsidyApply_del_elderly_batch(query = {}) {
			return request(`/application/ofsSubsidyApply/delElderlyApplyBatch`, {
				method: 'post',
				data: {
					batchApplyIdDel: query,
				},
			})
		},
	}
}
const ofsSubsidyReceipt = (request) => {
	return {
		// add
		view_ofsSubsidyReceipt_add(query = {}) {
			return request(`/application/ofsSubsidyReceipt/add`, {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_ofsSubsidyReceipt_del(query = {}) {
			return request(`/application/ofsSubsidyReceipt/del`, {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		// edit
		view_ofsSubsidyReceipt_edit(query = {}) {
			return request(`/application/ofsSubsidyReceipt/edit`, {
				method: 'post',
				data: query,
			})
		},
		// page
		view_ofsSubsidyReceipt_page(query = {}) {
			return request(`/application/ofsSubsidyReceipt/page`, {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...applyManage(request),
	...ofsSubsidyReceipt(request),
})
